package sctu.edu.java.year2016.team08.lisonghong.day20160522.chapter6_3;

import java.util.Date;

/**
 * 将今天的信息全部输出，且日期为年—月-日格式
 * Created by 松红 on 2016/5/22.
 */
public class chapter6_3 {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println("全部信息：" + String.format("%tT", date) + String.format("\t%tc", date));
        System.out.println("日期格式化:" + String.format("\t%tF", date));
    }
}
